import service from '@/utils/request'


//查看患者列表
export function getList(params) {
  return service({
    url: '/register/list',
    method: 'get',
    params
  })
}


/**
 * 挂号
 * @param params
 * @returns {*}
 */
export function save(params) {
  return service({
    url: '/register/save',
    method: 'post',
    params
  })
}


/**
 * 初始化挂号界面
 * 查询挂号级别，科室列表
 */
export  function initRegist(){
  return service({
    url: '/register/initRegist',
    method: 'get'
  })
}


export  function queryDoctors(params){
  return service({
    url: '/register/queryDoctors',
    method: 'get',
    params
  })
}



export  function queryRegistFeeItems(registId){
  return service({
    url: '/register/queryRegistFeeItems?registId='+registId,
    method: 'get'
  })
}

/**
 * 收费
 * @param paramStr
 * @returns {*}
 */
export  function  fee(paramStr){
  return service({
    url: '/register/fee?paramStr='+paramStr,
    method: 'post'
  })
}

/**
 * 退费
 * @param paramStr
 * @returns {*}
 */
export  function  refund(paramStr){
  return service({
    url: '/register/refund?paramStr='+paramStr,
    method: 'post'
  })
}


export  function  handlerRefundNumber(registId){
  return service({
    url: '/register/handlerRefundNumber?registId='+registId,
    method: 'get'
  })
}


